﻿<UserControl
    x:Class="ScrumTable.UI.View.WinTouch.UserControls.PieChart.SimplePieChart"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008" xmlns:PieChart="clr-namespace:ScrumTable.UI.View.WinTouch.UserControls.PieChart" xmlns:b="clr-namespace:ScrumTable.UI.View.WinTouch.UserControls.PieChart.Shapes">
    <Grid>
        <Ellipse Fill="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type PieChart:SimplePieChart}}, Path=BackColor}"></Ellipse>
        <b:PiePiece Panel.ZIndex="1" x:Name="Piece1" Fill="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type PieChart:SimplePieChart}}, Path=FirstColor}" Stroke="{x:Null}"/>
        <b:PiePiece Panel.ZIndex="1" x:Name="Piece2" Fill="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type PieChart:SimplePieChart}}, Path=SecondColor}" Stroke="{x:Null}"/>
    </Grid>
</UserControl>
